package com.entiy;

import java.util.Objects;

public class CourseinformationtableEntity {
    private String coursename;
    private String coursenumber;
    private Short openingsemester;
    private Integer classhours;
    private Integer credit;

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename;
    }

    public String getCoursenumber() {
        return coursenumber;
    }

    public void setCoursenumber(String coursenumber) {
        this.coursenumber = coursenumber;
    }

    public Short getOpeningsemester() {
        return openingsemester;
    }

    public void setOpeningsemester(Short openingsemester) {
        this.openingsemester = openingsemester;
    }

    public Integer getClasshours() {
        return classhours;
    }

    public void setClasshours(Integer classhours) {
        this.classhours = classhours;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CourseinformationtableEntity that = (CourseinformationtableEntity) o;
        return Objects.equals(coursename, that.coursename) && Objects.equals(coursenumber, that.coursenumber) && Objects.equals(openingsemester, that.openingsemester) && Objects.equals(classhours, that.classhours) && Objects.equals(credit, that.credit);
    }

    @Override
    public int hashCode() {
        return Objects.hash(coursename, coursenumber, openingsemester, classhours, credit);
    }
}
